# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=podman-compose
pkgver=1.1.0
pkgrel=0
pkgdesc="Script to run docker-compose.yml using podman"
url="https://github.com/containers/podman-compose"
# podman (netavark & aardvark-dns -> nix crate)
arch="noarch !s390x"
license="GPL-2.0-or-later"
options="!check" # Requires running docker env
depends="podman py3-dotenv py3-yaml"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/containers/podman-compose/archive/v$pkgver.tar.gz"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
27d732f7e92cff7cc6149982b7b55998467118b2db6a24f588919c747f6e97369d8a24a0198e19179de3baf504220f81d7a1246b12f7c0b1959191cf877e8f14  podman-compose-1.1.0.tar.gz
"
